﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Controls;

namespace WPFMitsuControlsv2
{
    public class ScrollViewerNotAtEndConverter : IMultiValueConverter
    {

        #region IMultiValueConverter Members

        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var viewport = System.Convert.ToDouble(values[0]);
            var offset = System.Convert.ToDouble(values[1]);
            var extent = System.Convert.ToDouble(values[2]);

            return viewport + offset != extent;
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
